package jwlee.testreflection;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class RefPojo2 {
	private String attr1;

	private String attr2;

	private Calendar attr3;

	public String getAttr1() {
		return attr1;
	}

	public void setAttr1(String attr1) {
		this.attr1 = attr1;
	}

	public String getAttr2() {
		return attr2;
	}

	public void setAttr2(String attr2) {
		this.attr2 = attr2;
	}

	public Calendar getAttr3() {
		return attr3;
	}

	public void setAttr3(Calendar attr3) {
		this.attr3 = attr3;
	}

	public String toString() {
		return super.toString()
				+ "(attr1:"
				+ attr1
				+ "; attr2:"
				+ attr2
				+ "; attr3:"
				+ (attr3 == null ? "" : new SimpleDateFormat("yyyy-MM-dd")
						.format(attr3.getTime())) + ")";
	}

}
